from datetime import datetime

import matplotlib.pyplot as plt

from utils.log import  Logger
from utils.common import time_processing




plt.rcParams['font.family'] = 'SimHei'
plt.rcParams['font.size'] = 15

class PowerLoadModel:
    def __init__(self,path):
        #拼接日志名字
        logfile_name = 'train_' + datetime.now().strftime('%Y%m%d%H%M%S')
        self.logfile = Logger('../',logfile_name).get_logger()

        self.logfile.info("开始创建电力负荷模型的对象模型")
        #获取数据源
        self.data_source = time_processing(path)
if __name__ == '__main__':
    pm = PowerLoadModel("../data/train.csv")
    print(pm.data_source)
